package org.springframework.samples.petclinic.web;

import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestMapping;

/**
 * @author Chris
 * @date 2020/02/20 00:53
 * @since 1.0.0
 */
@Controller
public class WelcomeController {

    @RequestMapping("/")
    public String showVetList(Model model) {
        // Here we are returning an object of type 'Vets' rather than a collection of Vet objects
        // so it is simpler for Object-Xml mapping
        return "welcome";
    }
}
